package com.luzhikun.jsptest.myjsp.listerner;

/**
 * ClassName: ListernerInfo
 * Description:
 * date: 2021/4/27 16:39
 *
 * @author luzhikun
 * @since JDK 1.8
 */

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * 实现Listerner监听器
 */
public class ListernerInfo implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("ServletContext对象被初始化了");

    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {

        System.out.println("ServletContext对象被销毁了");
    }


}
